#include<stdio.h>
int main(){
    printf("------enter the n------\n");
    int n;
    scanf("%d",&n);
    int sum=0;
    int tn=0;
    int i=1;
    int a=0;
    for ( i = 1; i <=n; i++)
    {
        tn=tn*10+2; 
        sum=sum+tn;      
    }    
    
    
    printf("sum is %d\n",sum);
}